import uniRequest from 'uni-request';
uniRequest.defaults.baseURL = 'https://dt.ystcsd.com';
const BASE_URL = 'https://dt.ystcsd.com';
const WEB_URL = 'https://dt.ystcsd.com/api?v=1.0&format=json&method=';
export {
	BASE_URL,
	WEB_URL
}

//首页海报
export const syhb = params => {
	return uniRequest.post('api/Home/index/', params).then(res => res.data)
}

//产业平台
export const cypt= params =>{
  return uniRequest.post('api/Home/industry/', params).then(res => res.data)
}

//产品体系分类
export const cptx =params =>{
   return uniRequest.post('api/Home/system/', params).then(res => res.data)
}

//下拉加载产品 
export const xljz =params =>{
   return uniRequest.post('api/Home/products/', params).then(res => res.data)
}

//产品体系搜索接口 
export const cpss =params =>{
   return uniRequest.post('api/Home/searchproduct/', params).then(res => res.data)
}

//产品详情
export const cpxq =params =>{
   return uniRequest.post('api/Home/productinfo/', params).then(res => res.data)
}

//我的项目
export const wdxm =params =>{
   return uniRequest.post('api/Home/projectlist/', params).then(res => res.data)
}

//项目详情
export const xmxq =params =>{
   return uniRequest.post('api/Home/projectinfo/', params).then(res => res.data)
}

// 获取分享
export const getSher=params =>{
   return uniRequest.post('api/Share/getConfig', params).then(res => res.data)
}
// 合伙人表单
export const postSubmit=params =>{
   return uniRequest.post('api/Home/partner', params).then(res => res.data)
}